﻿<Window x:Class="Convertor.MovePluginToWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{DynamicResource MovePluginTo}" 
        Height="400" Width="300" 
        Topmost="True" 
        ShowInTaskbar="False"
        ResizeMode="NoResize" 
        Icon="Images/logo256.ico"
        Loaded="Window_Loaded"
        KeyDown="Window_KeyDown"
        KeyUp="Window_KeyUp" 
        Activated="Window_Activated">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <Button Name="btUp" Content="▲" HorizontalAlignment="Left" Margin="5" Click="Button_Click_Up"></Button>
        </WrapPanel>
        <ListBox Name="lstSeletedPlugin" Grid.Row="1" Margin="3" MouseDoubleClick="lstSeletedPlugin_MouseDoubleClick">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="("/>
                        <TextBlock Text="{Binding Path=Order}"/>
                        <TextBlock Text=")."/>
                        <TextBlock Text="{Binding Path=Name}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <WrapPanel Grid.Row="2" HorizontalAlignment="Center">
            <Button Click="Button_OK_Click" Padding="14,3,14,3">
                <Button.Content>
                    <WrapPanel>
                        <Image Source="Images/ButtonOK.png" Margin="0,0,3,0" Width="16"/>
                        <TextBlock Text="{DynamicResource OK}"/>
                    </WrapPanel>
                </Button.Content>
            </Button>
            <Button Click="Button_Cancel_Click" Padding="14,3,14,3">
                <Button.Content>
                    <WrapPanel>
                        <Image Source="Images/ButtonCancel.png" Margin="0,0,3,0" Width="16"/>
                        <TextBlock Text="{DynamicResource MenuCancel}"/>
                    </WrapPanel>
                </Button.Content>
            </Button>
        </WrapPanel>
    </Grid>
</Window>
